<?php
declare (strict_types = 1);

namespace app\admin\event;

class SendMessageEvent
{
    public function sendMessage($event)
    {
        $data['uid']=$event['uid'];
        $data['message']=[
            'type'=>$event['type'],
            'message'=>$event['message']
        ];
        app('SendMessage')->sendMsg($data);
    }
}
